package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * dh_contract_push_message
 * @author 
 */
public class ContractPushMessage implements Serializable {
    private String pushmessageid;

    private String contractno;

    private String invoiceno;

    private String contractbackstatus;

    private String backdate;

    private String pushdatetime;

    private String receiveuserid;

    private String pushmemo;

    private Integer pushstatus;

    private static final long serialVersionUID = 1L;

    public String getPushmessageid() {
        return pushmessageid;
    }

    public void setPushmessageid(String pushmessageid) {
        this.pushmessageid = pushmessageid;
    }

    public String getContractno() {
        return contractno;
    }

    public void setContractno(String contractno) {
        this.contractno = contractno;
    }

    public String getInvoiceno() {
        return invoiceno;
    }

    public void setInvoiceno(String invoiceno) {
        this.invoiceno = invoiceno;
    }

    public String getContractbackstatus() {
        return contractbackstatus;
    }

    public void setContractbackstatus(String contractbackstatus) {
        this.contractbackstatus = contractbackstatus;
    }

    public String getBackdate() {
        return backdate;
    }

    public void setBackdate(String backdate) {
        this.backdate = backdate;
    }

    public String getPushdatetime() {
        return pushdatetime;
    }

    public void setPushdatetime(String pushdatetime) {
        this.pushdatetime = pushdatetime;
    }

    public String getReceiveuserid() {
        return receiveuserid;
    }

    public void setReceiveuserid(String receiveuserid) {
        this.receiveuserid = receiveuserid;
    }

    public String getPushmemo() {
        return pushmemo;
    }

    public void setPushmemo(String pushmemo) {
        this.pushmemo = pushmemo;
    }

    public Integer getPushstatus() {
        return pushstatus;
    }

    public void setPushstatus(Integer pushstatus) {
        this.pushstatus = pushstatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ContractPushMessage other = (ContractPushMessage) that;
        return (this.getPushmessageid() == null ? other.getPushmessageid() == null : this.getPushmessageid().equals(other.getPushmessageid()))
            && (this.getContractno() == null ? other.getContractno() == null : this.getContractno().equals(other.getContractno()))
            && (this.getInvoiceno() == null ? other.getInvoiceno() == null : this.getInvoiceno().equals(other.getInvoiceno()))
            && (this.getContractbackstatus() == null ? other.getContractbackstatus() == null : this.getContractbackstatus().equals(other.getContractbackstatus()))
            && (this.getBackdate() == null ? other.getBackdate() == null : this.getBackdate().equals(other.getBackdate()))
            && (this.getPushdatetime() == null ? other.getPushdatetime() == null : this.getPushdatetime().equals(other.getPushdatetime()))
            && (this.getReceiveuserid() == null ? other.getReceiveuserid() == null : this.getReceiveuserid().equals(other.getReceiveuserid()))
            && (this.getPushmemo() == null ? other.getPushmemo() == null : this.getPushmemo().equals(other.getPushmemo()))
            && (this.getPushstatus() == null ? other.getPushstatus() == null : this.getPushstatus().equals(other.getPushstatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPushmessageid() == null) ? 0 : getPushmessageid().hashCode());
        result = prime * result + ((getContractno() == null) ? 0 : getContractno().hashCode());
        result = prime * result + ((getInvoiceno() == null) ? 0 : getInvoiceno().hashCode());
        result = prime * result + ((getContractbackstatus() == null) ? 0 : getContractbackstatus().hashCode());
        result = prime * result + ((getBackdate() == null) ? 0 : getBackdate().hashCode());
        result = prime * result + ((getPushdatetime() == null) ? 0 : getPushdatetime().hashCode());
        result = prime * result + ((getReceiveuserid() == null) ? 0 : getReceiveuserid().hashCode());
        result = prime * result + ((getPushmemo() == null) ? 0 : getPushmemo().hashCode());
        result = prime * result + ((getPushstatus() == null) ? 0 : getPushstatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pushmessageid=").append(pushmessageid);
        sb.append(", contractno=").append(contractno);
        sb.append(", invoiceno=").append(invoiceno);
        sb.append(", contractbackstatus=").append(contractbackstatus);
        sb.append(", backdate=").append(backdate);
        sb.append(", pushdatetime=").append(pushdatetime);
        sb.append(", receiveuserid=").append(receiveuserid);
        sb.append(", pushmemo=").append(pushmemo);
        sb.append(", pushstatus=").append(pushstatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}